<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {foreach $list as $v}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$v['title']}:</label>
        <div class="col-xs-12 col-sm-8">
            {if in_array($v['type'],[1,3,4])}
                <input id="c-type" class="form-control" disabled type="text" value="{$v.value|htmlentities}">
            {elseif $v['type']==2}
                <textarea id="c-content" disabled class="form-control " rows="5" name="row[content]" cols="50">{$v.value|htmlentities}</textarea>
            {elseif $v['type']==5}
          
                <a href="{$v.value|htmlentities}" target="_blank"><img src="/kk.php/ajax/icon?suffix=pdf" alt="" style="max-height:90px;max-width:120px"></a>
            {elseif $v['type']==6}
                <img src="{$v.value|htmlentities}" alt="" width="100">
            {/if}
        </div>
    </div> 
    {/foreach}
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Multiplejson')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <table class="table fieldlist" data-name="row[multiplejson]" data-template="row[multiplejson]tpl">
                <tr>
                    <td>{:__('multiplejson title')}</td>
<td>{:__('multiplejson type')}</td>
<td>{:__('multiplejson required')}</td>
                    <td width="90">{:__('Operate')}</td>
                </tr>
                <tr><td colspan="4">
                <a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a>
                <textarea name="row[multiplejson]" class="form-control hide" cols="30" rows="5">{$row.multiplejson|htmlentities}</textarea>
                </td></tr>
            </table>
            <script type="text/html" id="row[multiplejson]tpl">
                <tr>
                    <td><input type="text" name="<%=name%>[<%=index%>][title]" class="form-control" value="<%=row.title%>"/></td>
<td><input type="text" name="<%=name%>[<%=index%>][type]" class="form-control" value="<%=row.type%>"/></td>
<td><input type="text" name="<%=name%>[<%=index%>][required]" class="form-control" value="<%=row.required%>"/></td>
                    <td width="90">
                        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
                        <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
                    </td>
                </tr>
            </script>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-type" class="form-control" name="row[type]" type="number" value="{$row.type|htmlentities}">
        </div>
    </div> -->
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('State')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="stateList" item="vo"}
            <label for="row[state]-{$key}"><input id="row[state]-{$key}" name="row[state]" type="radio" value="{$key}" {in name="key" value="$row.state"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div> -->
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
        </div>
    </div> -->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
